//go:build windows
// +build windows

package edge

import (
	"unsafe"

	"gitee.com/go_888/webview2/internal/w32"
)

func (e *Chromium) Resize() {
	if e.controller == nil {
		return
	}

	var bounds w32.X结构_矩形
	w32.X获取客户区矩形.Call(e.hwnd, uintptr(unsafe.Pointer(&bounds)))

	words := (*[2]uintptr)(unsafe.Pointer(&bounds))
	e.controller.vtbl.PutBounds.Call(
		uintptr(unsafe.Pointer(e.controller)),
		words[0],
		words[1],
	)
}
